package com.jd.mapper;

import com.jd.my.mapper.MyMapper;
import com.jd.pojo.Item;
import com.jd.vo.ItemCommentVO;
import com.jd.vo.SearchItemsVO;
import com.jd.vo.ShopcartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemCustomMapper {

    public List<ItemCommentVO> queryItemComments(@Param("paramsMap") Map<String,Object> params);

    public List<SearchItemsVO> searchItems(@Param("paramsMap") Map<String,Object> params);

    public List<SearchItemsVO> searchItemsByThridCat(@Param("paramsMap") Map<String,Object> params);

    public List<ShopcartVO> queryItemsBySpecIds(@Param("paramsList") List params);

    public int decreaseIitemSpecStock(@Param("specId")String specId,@Param("pendingCounts")int pendingCounts);

}